'Disconnect from feed.
Args:
reason (str, optional): Motivation for the disconnect.'

def disconnect(self, reason=None):

    if (self.factory.task and self.factory.task.running):
        self.factory.task.stop()
    self.sessionhandler.disconnect(self)
