Let's not forget to that they had to sell the fabs due to Intel anti-competitive market squeezing. They would offer the chips for free, but vendors would still be better off with the Intel kickbacks.
They were later compensated, but the damage done was incredibly destructive.
If the fab sitting idle or production is bellow running cost then they are in trouble. Better to spend that money on R&D.