Use curl_easy_cleanup to close any open stratum sockets.