if it only happens once, i wouldn't worry about it
I had my 1st gen iphone replaced for this. It would randomly shut off when i wasn't using it. The battery was never low. But most of the time I'd have some trouble getting it to turn back on, once i even had to plug it in. It did this about 10 times in a month before i could get them to replace it.