log exit events from within session rather than process manager