log exit of app