close the client socket