'generic hook for the engine to call in order to
disconnect this protocol.
Args:
reason (str, optional): Reason for disconnecting.'

def disconnect(self, reason=''):

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