Well, first of all, although this may be a bit of a pain, ensure that malware is not affecting your system,
Download the free version of this; Malwarebytes
and run a FULL
scan after updating the database. If it finds anything, post the log here.
Secondly, ( which I would normally move on to after your response regarding malware),
Some programs occasionally interfere with some registry entries and cause various problems on shutdown. Here are some possible solutions;
To enable fast shutdown, open the registry editor:
1. Click Start, type Regedit.
2. go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
3. Double click “WaitToKillServiceTimeout”
4. Change the default value from 12000 to 1000
You can also try other timings. ( The default is 12000 ms), Going below 300 can cause other problems.
This will also do it for you, especially if certain processes hanging is the problem;
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
Save the file as "fastclose.reg" and merge it, ( Just click on the file).