Fix HttpClient usage to keep connections opened