code: def stop(self):
          
          if self._outstanding:
              _LOGGER.warning('There were %d outstanding requests',
                              len(self._outstanding))
  
          self._initial_message_sent = False
          self._outstanding = {}
          self._one_shots = {}
          self.connection.close()
docs: Disconnect from device.