close the Client when done