he didn't sell the company. he sued the company and they settled out of court. he made his money via legal action, not business or programming acumen. the sale was for pennies and was only done so that the VCs wouldn't look completely retarded for investing in the first place.
he didn't really have any choice but to retire. no investor will give him money and no programmer with any sense would work for him.