public function __destruct() { if (is_resource($this->fd)) { fclose($this->fd); } if (file_exists($this->get_pipe_file_path())) { unlink($this->get_pipe_file_path()); } JAXLLogger::debug("unlinking pipe file"); }