Adding functionality to stop Event distribution task.