Thanks all, it was the power supply. Fortunately (and by chance) I could replicate the shutdown by plugging in my wifi dongle. There was a muffled click when the machine died each time, and the power button wouldn't respond for a restart unless I disconnected and reconnected the power lead.