How to survive a layoff