Handle errors on tasks correctly with a die,