Some of life's best lessons are learnt at the worst times.