Something you could try. The next time you intend to shutdown, make a note of the time, (hours and minutes). Then shut down. Then reboot Windows and go to the Event Viewer and search for any software or system events that are taking a long time to close from that time you noted.
Event Viewer: Control Panel > Administrative Tools > Event Viewer, then "Windows Logs" and Application and/or System.