If you feel like a layoff may be imminent, start building your network now and make sure you have a record of your performance and work.