cancel tasks when there are error