Ours did that a few times recently both when shutting down, and when just logging off a user account. PC still running but nothing on the screen. No option but to hold in the power button until it shut down. No errors / messages on restart.
Ran system file check and at one point it asked for the XP cd to copy a file, and all seems fine again now.
No idea what it was.