public function __destruct() { if ($this->unlocked) { unlink($this->privateKeyFile); $this->unlocked = null; } }