Added code to handle shutting down servers with no players.