log out the exception