Close our global session at the end of a command