fixed spam messages when server is closed