When closing a client, make sure it is not left in sleeping_clients.