Took me the whole afternoon to figure this out but i finally did it.
for XP shutdown problems, go to ctrl+alt+del then end all tasks. If that doesnt solve it go to processess and look for those that are using cpu's usage. I think it is okay to have system idle process and taskmgr.exe using...