Apple and GT have agreed to an ‘amicable parting of the ways’ by Philip Elmer-DeWitt @FortuneMagazine October 21, 2014, 7:47 PM EDT E-mail Tweet Facebook Google Plus Linkedin Share icons GT Advanced Technologies GTATQ announced in a Springfield, Mass., bankruptcy court Tuesday that it had signed an agreement with Apple Inc., its largest creditor. Under the terms of the deal, GT will retain ownership of 2,036 furnaces in Mesa, Arizona, that it was using to grow sapphire crystals for the screens and lenses of Apple devices. Over the next year, GT will attempt to sell those furnaces and use the proceeds from those sales — if any — to pay its debt to Apple. Apple, for its part, has agreed to accept an undisclosed portion of those proceeds as full settlement of GT’s debt to Apple, currently valued at $439 million, and waiving all other claims against its former subcontractor. Luc Despins, an attorney representing GT, described the arrangement as “an amicable parting of the ways.” “This is extremely good news for the estate,” he said. “It will save millions of dollars.” In an earlier filing GT claimed it was losing $1.5 million every day it had to keep the plant running. What went wrong with the GT-Apple deal — hailed less than a year ago as a shot in the arm for both GT and the state of Arizona — is still a mystery. As a condition of the settlement, certain documents that Apple has been fighting to keep out of the public record — including the original contract and an affidavit filed by GT chief operating officer Daniel Squiller — will remain sealed. That didn’t sit well with some of three dozen lawyers in the room, including the assistant attorney general of New Hampshire, where GT is headquartered, and a lawyer representing the Wall Street Journal. Both argued that the public had a right to know why hundreds of workers are being laid off and creditors owed millions of dollars are being asked to accept a fraction of what they are owed. At the end of the day, Judge Henry Boroff allowed GT to begin winding down its Mesa operations. But it’s not clear whether he’s changed his mind about Apple’s penchant for secrecy. At a hearing last week he warned Apple that he was inclined to unseal everything. By cutting this deal with GT, Apple may have found a way to avoid that. Follow Philip Elmer-DeWitt on Twitter at @philiped. Read his Apple AAPL coverage at fortune.com/ped or subscribe via his RSS feed.