Just a side note: the loss of a wing is one the "exceptions" that go deliberately "unhandled". Not even sensors and alerts are implemented -- after all, it's such an unlikely event, unrecoverable from, and they would simply add weight and complexity just to let the crew know the plane is doomed.
This sadly happened, though, with flight Gol 1907 in 2006. The wing was cut off by a crash with another plane in-flight. You can hear in the voice recorder the warnings about the plane falling off the safety envelope (and no mention to the lost wing ofc), and it's really sad how lost the crew gets during the seconds between the loss of the wing and the airplane destruction.