code: def stop(self):
          
          self.keep_reading = False
          if self.readthread is not None:
              self.readthread.join()
              self.readthread = None
docs: Stops and joins readthread.
  
          :return: Nothing