Explicitly close cURL connections at the end of each request

We had an incident over the weekend due to a long running process which utilized this library for HTTP requests to our DNS service. Due to how the library closes cURL connections (`__destruct`) and how PHP GC works (it doesn't), we ended up with a lot of open file descriptors which caused the long running process to hit the limit on the number of open files. Bad things happened.

This change explicitly closes the cURL connection after each request, and initializes a new one for subsequent requests.

I'm after some feedback on if this is the right way to go about these changes before a blind merge, and also a sanity check as this is a fairly critical library for many of our applications.