So is this a blue screen or an error message in windows? but the computer will still shut down?
Im not sure how to fix it, but if you computer shuts down and starts up fine, when you go to turn it on. Then I wouldn't worry about it.
Make this registry Edit so you don't see it again.
Dramatically improve menu speeds and application and system shutdown/restart speeds
[HKEY_CURRENT_USER\Control Panel\Desktop]
AutoEndTasks=1 Automatically closes running applications when Windows shuts down.