left a few calls to curl_global_cleanup