making sure that if tasks are defined with handlers, we don't double register the handler for the event