phpseclib\Net\SSH2::__destruct PHP Метод

__destruct() публичный Метод

Will be called, automatically, if you're supporting just PHP5. If you're supporting PHP4, you'll need to call disconnect().
public __destruct ( )
    function __destruct()
    {
        $this->disconnect();
    }