code: def close(self):
          
          logging.debug("closing interface")
          self.closed = True
          self.read_sem.release()
          self.thread.join()
          usb.util.dispose_resources(self.dev)
docs: close the interface