fix problem where server required a restart if all clients disconnected