After: companion action for Before

I patched cli in order to add a deferred action to run after a subcommand (even if Before fails).

I needed this in a project of my own, to properly close resources.