Check your Pos connection to your battery as well.
I had this exact same thing happen and it turned out that my pos. connection to the battery had come loose just a bit. Has never done it since. I mean it was just a little loose. Car would run great then for a split second it would shut down then come back on like nothing happened.