All I can say is that that file is interferring with the shutdown process and its got a problem.
Try un-installing those programs and re-installing them again. Maybe it got a bit corrupted.
As for the second error since its only happened once, it might be just a one off.
Have you got spyware removers/antivirus programs on your comp you could check it with?
Also try running Check Disc from within Windows to check for errors that might be able to be fixed on the hard drive:
Go to Run and type
It might find some problems and fix them, which might fix the fault, you never know.
Hope this helps