Update to stop `curl_multi_select` from timing out

* Moved the call to `curl_multi_init()` to after `curl_init()` calls
* Sleep if `curl_multi_select` returns -1 rather than run if it does not