Avangrid avoids $1 billion write-off after ending plans to build CT’s Park City Wind farm