Task Failed Successfully: What Setbacks Teach You