At least you were still on terra firma, and not over a vast expanse of ocean, and were able to shutdown quickly and safely.
Time for analysis is definitely not on your side in those situations, particularly after takeoff.
I guess that's a good reason why they use PTFE wiring in certified panel mounted kit.