public function disconnect()
    {
        if (null !== $this->_ssh_resource) {
            $this->exec('echo "EXITING" && exit;');
            $this->_ssh_resource = null;
            $this->_sftp_resource = null;
        }

        return $this;
    }
public function disconnect()
    {
        if (null !== $this->_ssh_resource) {
            $this->exec('echo "EXITING" && exit;');
            $this->_ssh_resource = null;
            $this->_sftp_resource = null;
        }

        return $this;
    }
public function disconnect ( ) { if ( null !== $ this -> _ssh_resource ) { $ this -> exec ( 'echo "EXITING" && exit;' ) ; $ this -> _ssh_resource = null ; $ this -> _sftp_resource = null ; } return $ this ; }
Disconnect from the remote server and unset resources.

@return \BackBee\Util\Transport\SFTP
Disconnect from the remote server and unset resources .