'Disconnect the current SSH connection.'

def disconnect(self):

    try:
        self._ssh.logout()
    except Exception:
        pass
    finally:
        self._ssh = None
    super(SshConnection, self).disconnect()
