Last night while waiting in a drive thru to pick up food the car had all kind of warnings and eventually stalled. Turned off the car and as I turned the key to on, all lights and even rear camera came on. This happened a few times while I tried to pull out of the thru. While out of there I stopped the car and waited about 10 seconds and started it and only the abs, tc off and tc light were on as I was in D. Turned the car off for more than 30 seconds and all was fine, but I am worried. What can it be? I plan on taking it tomorrow to see if some codes were stored at the dealer, but not sure they are stored for 24 hrs or so.