'Generic hook for the engine to call in order to
disconnect this protocol.
Args:
reason (str): Motivation for the disconnection.'

def disconnect(self, reason=None):

    self.data_out(text=(((reason or ''),), {}))
    self.connectionLost(reason)
