code: def destroy(self):
          '''
          Tear down the minion
          '''
          if self._running is False:
              return
  
          self._running = False
          if hasattr(self, 'schedule'):
              del self.schedule
          if hasattr(self, 'pub_channel') and self.pub_channel is not None:
              self.pub_channel.on_recv(None)
              if hasattr(self.pub_channel, 'close'):
                  self.pub_channel.close()
              del self.pub_channel
          if hasattr(self, 'periodic_callbacks'):
              for cb in six.itervalues(self.periodic_callbacks):
                  cb.stop(f destroy(self):
          '''
          Tear down the minion
          '''
          if self._running is False:
              return
  
          self._running = False
          if hasattr(self, 'schedule'):
              del self.schedule
          if hasattr(self, 'pub_channel') and self.pub_channel is not None:
              self.pub_channel.on_recv(None)
              if hasattr(self.pub_channel, 'close'):
                  self.pub_channel.close()
              del self.pub_channel
          if hasattr(self, 'periodic_callbacks'):
              for cb in six.itervalues(self.periodic_callbacks):
                  cb.stop()
docs: Tear down the minion