What I learned from a recent painful experience.