Called when an existing task is removed from the configuration.
        This sets a Do Not Resuscitate flag and then initiates a stop
        sequence.  Once all processes have stopped, the task will delete
        itself.

def terminate(self):
        """
        Called when an existing task is removed from the configuration.
        This sets a Do Not Resuscitate flag and then initiates a stop
        sequence.  Once all processes have stopped, the task will delete
        itself.
    """
        log = self._params.get('log', self._discard)
        self._dnr = time.time()
        self.stop()
        log.info("Task '%s' marked for death", self._name)