CWT Dodges Bankruptcy with Debt-Restructuring Deal