What are you doing at the time it quits? Do you have any devices plugged in at the time? Do you have any third party system hacks, theme changers or iPhoto plugins installed? Maybe check Console in the Utilities folder and see if the iPhoto crash log has anything to say... 🙂