An MBA would open up higher level management where you might be able to find something there. Sometimes I think med school might be worth it; we always need more doctors and you can work until you are 75 if you want. A lot of state med schools these days will waive tuition provided you serve in a rural community of that state after your residency for a few years. You definitely will get job security and high pay. I know a lot of later in life doctors for instance.
There's also entrepreneurship and starting your own company as well. Government contracts can be a way to get started.
Life is risk, but if you keep interviewing I am sure you will land something. The programming market is still expanding.