run

Attempts every cleanup action and preserves the first failure with later failures suppressed.

Parameters

cleanups

borrowed cleanup operations, never retained or retried by this helper.

Throws

after all operations have been attempted when any cleanup fails.