You can learn from even the most frustrating experiences.