Two top executives are leaving Twitter as a temporary hiring freeze goes into effect and Elon Musk tries to raise $44 billion to buy the company.