docs: def run(self):
          """ Main process loop.
              """
  
          self._prepare()
  
          while self.running:
              if self._run() is False:
                  break
              time.sleep(self._sleep_period)
  
          self.shutdown()