add curl_easy_reset to close connection