Fixed clean disconnection of clients