Deregister all legion events associated with this task
        (or possibly those listed in the current config, but it
        would be better to base deregistration on the task name).

def _event_deregister(self):
        """
        Deregister all legion events associated with this task
        (or possibly those listed in the current config, but it
        would be better to base deregistration on the task name).
    """
        log = self._params.get('log', self._discard)
        if 'events' not in self._config_running:
            log.debug("No events present for task '%s'", self._name)
            return
        for event in self._config_running['events']:
            ev_type = self._get(event.get('type'))
            if ev_type == 'python':
                self._legion.module_del(self._name)
            elif ev_type == 'self':
                self._legion.file_del(self._name)
            elif ev_type == 'file_change':
                self._legion.file_del(self._name)