Stop tasks when one throws an exception