'Called by sessionhandler to disconnect this protocol.
Args:
reason (str): Motivation for the disconnect.'

def disconnect(self, reason=''):

    self.sessionhandler.disconnect(self)
    self.stopping = True
    self.transport.loseConnection()
