ensure all cleanups are executed

This is useful when a top-level cli app wants to do some cleanup of its own after a subcommand
has been executed