closeClient

Closes the client. This should be called when the API is no longer needed.