def METHOD_NAME(self, reason=None):
    """
    Disconnect from feed.
    Args:
        reason (str, optional): Motivation for the disconnect.
    """
    if self.factory.task and self.factory.task.running:
        self.factory.task.stop()
    self.sessionhandler.METHOD_NAME(self)