I think (holds breath) I may have found the problem. I started to systematically disconnect hardware add ons. When I disconnected the slave (D) drive things seemed to stabilize and return to normal and it hasn't shutdown/restarted since then. I will leave for a few days to make sure though. If it was the problem is there any way to recover the 'stuff' from the drive?
Yhanks for advice etc.