A note of encouragement: My wife has just retired, at the age of 74. Her profession, like mine, was custom software development. At her most recent job she was hired at the age of 68. Retired with a 6-figure salary and was pretty close or at that the whole time she worked there. Strangely, she even gets a couple of modest pensions - one from this job and one from a job she held in the 70's.
She was out of work for about a year before that, after being laid off as part of the failure of Washington Mutual. But I was a high earner all along, so it wasn't a hardship on us at all, making our situation somewhat different from yours.
FWIW, my highest income started coming in from about when I hit 55 or so. Pretty much the same for my wife.