Unfortunately that's not the way it works for authors, but it worked just fine for Ron Boire, the former CEO of floundering book chain Barnes & Noble.
He was fired in August of this year after less than a year in the post. During his tenure Barnes & Noble failed to thrive, so it's understandable that they wanted to replace him.
His reward for going away was $4.8 million.
Nice work if you can get it.