In US and English law, "specific performance", so a court ordering you to do what you promised, isn't available for personal service contracts. In the US that's reinforced by the 13th Amendment's ban on involuntary servitude. So even if a CEO signed a contract promising 6 months notice and a smooth handover, the company can't make them do it, they can only enforce any financial penalties that are contracted.