added HttpClientException and disposed the client in the get and post requests