public function __destruct() { try { $this->disconnect(); } catch (ezcMailTransportException $e) { // Ignore occuring transport exceptions. } }