/** * FtpClient object destructor * * Closes an existing connection, if we have one * * @since 1.5 */ public function __destruct() { if (\is_resource($this->_conn)) { $this->quit(); } }