Create the new cURL multi handle with error checking
private function createMultiHandle() {
if ($this->multiHandle && is_resource($this->multiHandle)) {
curl_multi_close($this->multiHandle);
}
$this->requests = array();
$this->multiHandle = curl_multi_init();
$this->handles = new \SplObjectStorage();
$this->resourceHash = array();
$this->removeHandles = array();
// @codeCoverageIgnoreStart
if ($this->multiHandle === false) {
throw new CurlException('Unable to create multi handle');
}
// @codeCoverageIgnoreEnd
}