'Disconnect from server.
Args:
reason (str): Motivation for disconnect.'

def disconnect(self, reason='Connection    closed.    Goodbye    for    now.'):

    if reason:
        self.data_out(text=reason)
    self.connectionLost(reason)
