If you are selling the corporation and name, I doubt it would work. Maybe you could do an end run by establishing a new corporation or entity that "advises" the new business owner during the changeover and make that part of the sale price, but I don't see how you could stretch that past 2018, and then you'd have to roll it into something else. If you're seriously looking for a legit way, a CPA may be able to give advice.
The other option is to fire all your employees right now and max your own advantages-- the American way!