ACPI has been known to cause things like that; either dive into Device Manager and remove all ACPI related bits and bobs then let XP redetect them, or reinstall XP.
MS suggests it could be
crashing when you try and shut it down, and you've got it set up to automatically restart when a serious error occurs.