An executive contract will normally contain a time period. That way, if the company is bought, the officer still gets his loot.
DISCLAIMER: I am a dirty, rotten penny investor. I am not compensated by any stock. I've asked them to pay me, they refuse. I buy stock on the open market. I sell it there. I like money. I am greedy. I am under the care of a psychiatrist.