/**
  * Unallocate curl context
  */
 protected function unallocateCurlContext()
 {
     if (self::$curlContext) {
         curl_close(self::$curlContext);
         self::$curlContext = NULL;
     }
 }