The company plans to close hundreds of restaurants.