If you can, pull the plug as soon as it dies, check for moisture. That will show you if it is gas or electrical. I am betting on electrical. Gas would usually make it die a little slowly, electrical and it just turns off. Good luck with it.
A word to the wise is not necessary. It is the stupid ones who need the advice.
Pat