def METHOD_NAME(self, exc):
    """Device connection was dropped."""
    _LOGGER.debug("%s Disconnected from device: %s", self._log_str, exc)
    self._transport = None
    self.listener.stop()  # pylint: disable=no-member
    if self.atv:
        if exc is None:
            self.atv.listener.connection_closed()
        else:
            self.atv.listener.METHOD_NAME(exc)