Always log out before exiting.