code: def cancel(self):
          
          if self.OBSERVE_UPDATES:
              self.detach()
          self.ioloop.add_callback(self.cancel_timeouts)
docs: Detach strategy from its sensor and cancel ioloop callbacks.