I would caution not contributing to your 401K. You at least should contribute up to the company match as that is free money and also the ESPP as that is a free 10% you get on the money (give or take). You can safely withdraw your 401K early w/out penalty under rule 72. Research this rule, although once you start withdrawing money, you cannot stop - you have to pick equal amounts each year until retirement age - e.g. 4% per year etc. Plus, any gains you make within your account are tax free until you do retire or are unemployed where your income will be far less, thus taxed far less. Don't give up any free money. Also, don't through the baby out w/the bathwater. I have seen plenty of people still around i their 60's that were hired in recent years with generalized skills that are still surviving. Same complaints because of a still very sick culture but they there, men and women.
Also, for every evil manager that gives you a bad mark, it only takes another one to give you a good mark. don't lose hope if you have done, are doing, still have the capacity to do good work. Some advice I got from some old timers at Microsoft is that all it takes is one hiring manager out of all of these thousands to hire you. They know the the BS ad how there can be a lot of immaturity in the review process so again, all it takes is one to give you a chance. Lisa Brummell has given a great stray about how once she got a 2.5 and her team said she was out. That was like 20 years ago and look at her career from there. Sooo, don't give up if you really want to stay. Also there are lot of other companies hiring today plenty for those over 40. It's not like it used to be despite the Microsoft rumors and drama which has a tendency to over dramatize the smallest of myths and then recover quickly. Kind of like a 2 year old hurling itself on the floor at review time, pounding fists and then the next day, everyone can and will recover if they set their mind to it. Me, over 50, still employed, seen many ups and downs, been on the fast track and accelerated many times and then the next year, a new boss, new drama, all of a sudden your no longer a star...bla black bla, just do an eye roll behind the scenes because you know that that is not the case and set your mind to getting a role in a spot where you know you can add value. It can be done and you don't need to be a genius, have a special inner circle, sleep w/someone or all of the other myths. You just need to set your mind to it, keep a great attitude, and stay focused on your skills as well as being able and willing to continue to adapt those skills