Destructing objects after using callback functions
Certain Curl callback functions such as the Header, Progress, Read and Write functions can cause the underlying Curl resource to destruct. This is by the design of Curl, but if this happens while using the OOP wrapper that this repository provides, an error is raised when the object destructors fire, because the underlying resource is no longer present.