I've had the plug end of the cord set fail on mine. you can feel it getting really warm.
A very long time ago, someone else on the forum reported that theirs melted, damaging the plastic on the bumper. They can go on fire. Also the extension cord's recptical can go "bad", and it's heat can melt both.
So watch them, if either of the molded plug ends are getting real warm, replace the cord set or extension cord.
I doubt it's "static" that caused the heating element to fail , due to the truck running while the heating element was plugged in.
It maybe some electrolysis if you don't keep up on your antifreeze changes.
More so I would think an effect of the coolant being hot already and the element over heats since the coolant isn't able to dissipate the heat from the heating element...
But I think if you had it plugged in for a minute or two while just starting the truck , it would be ok. I've been doing that for years and no problem.
I found bulb grease works great for keeping the plug on the cord set, and socket end on the extension cord happy/clean.
I have my heater as part of my X10 system. It's on a relay module.
After some bad plugs and one totally failed cord set, I now monitor my heater remotely for voltage and current, so I can see if I have a good connection and it's working.