Trigger event when a task done