public function __destruct() { if ($this->curlMHandle != null) { curl_multi_close($this->curlMHandle); } }