Are you positive that selling your company is the only mutually beneficial transaction you and the acquiring party can arrange? There are many possible options, with VASTLY different tax consequences but only minorly different changes on the ground. Stock sale != asset sale != IP licensing agreement != sudden decision of all key employees to change jobs.
Consider BobSoft, a hypothetical company with three engineers and some IP which is 100% owned by Bob. If BobSoft gets acquired by Google via Google buying all the shares from Bob, Bob has capital gains up the wazoo. If on the other hand Google buys all the assets of BobSoft, BobSoft continues to be a going concern. It continues paying Bob a salary for a few more months, puts around doing whatever BobSoft would do in the absence of their main line of business, hits the magic day on the calendar, and then buys all stock in itself back from Bob, who now has long-term capital gains. BobSoft then spins down in an orderly fashion.
Ask your competent legal advisers for how to work this such that you don't trigger the ire-RS. This is what they do.
More broadly: every tax cutout, no matter how well-intentioned, distorts the economy by paying smart people to spend more time figuring out how to hit the algorithm versus doing whatever they would otherwise do to earn money.