I've never understood the ways that modern companies handle layoffs- call people into a meeting room one by one, tell them they're being let go, then escort them out of the building. It's not just that it's cold, but it builds a huge cloud of oppression for everyone else. I just watched this happen to a friend, and the guy who was sitting next to him is now saying "I could be next, better start talking to recruiters"…
Someone is losing their job unexpectedly. Nearly everyone spends too much of their income and saves too little for retirement/emergencies, so losing your job unexpectedly can have devastating financial consequences. Even bouncing back and finding another job could set your retirement back years if it doesn't happen quickly enough, and ruin your credit if you don't have appropriate savings. I don't think there's a way…
UK: in larger organisations (I mean big enough to have more than say 20 employees being made redundant) there is a consultation process that lasts a month or can last up to three months depending on the number of people being made redundant. There is a process that has to be kept to and there is a statutory minimum amount of redundancy pay [1] as well as payment in lieu of notice. Redundancy payments are tax free up to a limit
The result is in my experience less secrecy (consultation period) and some sort of financial safety net, at least a few months worth.