Ouch, A company I used to work for never started the APU and left #1 running until they plugged us in, then something like this happened and then we always started the APU before getting to the gate.
I guess and they found it cheaper to run the APU for 5 minutes than replace an engine. Not saying this was the case, quite possible the APU was deferred...