Discount retailer plans to close nearly 1,000 stores