Close the client