curl_close was missing