I would check the console logs for a clue as to why it happened. This might help you prevent it from happening again. This has only ever happened to me once in the year that I had my iBook, and never (so far) with my MacBook. The time it happened with my iBook I didn't bother attempting to fix it, and it never happened again :-)
--
moto