code: def stop(self):
          
          self.log.debug('Stopping bot {}'.format(self._name))
          self._stop = True
          for t in self._threads:
              t.join()
  
          self.log.debug('Stopping bot {} finished. All threads joined.'.format(self._name))
docs: Stops this bot.
  
          Returns as soon as all running threads have finished processing.