Stop running tasks if a task fails