code: def _on_disconnect(self):
          
  
          self._logger.info("Connection to device %s was interrupted", self.connection_string)
          self.connection_interrupted = True
docs: Callback when a device is disconnected unexpectedly.
  
          Args:
              adapter_id (int): An ID for the adapter that was connected to the device
              connection_id (int): An ID for the connection that has become disconnected