Car Turns Off While Driving

My 99 Honda Accord 4 cylinder will just turn off while driving. Last time I was on the freeway and luckily I was near an exit and was able to get off and come to a rolling stop. Right before I come to a stop the lights on the dash will all illuminate. Any suggestions on how to fix this problem?