Rearranges curl_multi to ensure requests are finished

Prevents some unknown errors, cures common cold.
Merge pull request #4 from rmasters/fix-curl-multi

Rearranges curl_multi to ensure requests are finished