Fixed the bug where the server destroyed itself when pressing backkey