That sounds like electrical problem. Most likely it will happen again. I had this problem on two other previous cars. Dirty fuel may cut your power out but it will not shut the engine down.