Loging exit event fixed