The company's stock plunged about 8 percent on the news of Hastings's departure.