They have the legality, but this particular decision is still a betrayal.
Just look at the stock price plunge after he resigns, and I think this is structural in loss of company value instead of temporary sentiment.
He IS the company's value.