Clean up form
curl_global_init now protected by a semaphore