There’s a right way to dwell on failure