'Disconnect the current Telnet connection.'

def disconnect(self):

    try:
        self._telnet.write('exit\n'.encode('ascii'))
    except Exception:
        pass
    super(TelnetConnection, self).disconnect()
