Mayer, the CEO, was expected to remain with the company after its sale to Verizon closes.