failing task on error