Fixed: Crash when leaving the server