What is wrong with leaving everyone high and dry? The CEO has no qualms about doing that to devs.
If an engineer leaving puts the company in a bad spot, then they are understaffed and need better management that can foresee and handle those transitions before they happen.
It's all part of proper engineering culture.