Turn task failure into a 500 error