I recently started to think like this. When something unexpected or bad happened, instead of crying about it (although of course I did a bit of that too) I've become quick to think "what does the universe want me to learn?".
Wise words. After all, smooth seas don't make skilful sailors.