By default, when XP encounters a system failure,it
reboots without warning.To stop this,go to control
panel,click on system,advanced tab,startup and recovery
section,click settings,system failure
uncheck "automatically restart.Now,instead of shutting
down, it should at least give you a indication of what is
wrong and a chance to troubleshoot...Good luck.