The company says nearly 4,000 employees will be affected by the closures.