Accord - while driving car stalled a few seconds and restarted itself

My 1998 Accord, 5 speed, with 150,000 miles today did something new. I was driving, actualy coasting at about 40 mph, when all of a sudden the car stalled out for a few seconds, then restarted itself. The ‘check engine’ light flickered on when this happened. It all happened so quickly, and then resolved and I continued to drive home. Any thoughts on what caused this, and if I need to be immediately concerned.