Getting laid off was one of the worst things that ever happened to me. But it led to the best results.