HH-35762 close libcurl connections after use