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.
I left the import in order you could test it using my repo. Maybe I should change it back? I couldn't test my patch without this.