call curl_global_cleanup