Dealing with client socket close.