public function __destruct() { if ($this->sentPackage && file_exists($this->sentPackage)) { unlink($this->sentPackage); } }