When you're told you're losing your job, it can feel like the end of the world. But it needn't be - it can bring you good things you never imagined.