closing HttpClient to avoid leaks