Logging out causes a game crash