fixed a bug in client disconnect

the server won't crush after all the clients disconnect