You could try the small utility called EndItAll available at:
EndItAll (Freeware)
I see from the link above, this is a new version of the one I currently use. I haven't tried this version yet but the original was very useful for shutting down all open programs such as firewalls, antivirus etc. etc prior to shutting down the system. It protects (by default) a couple of essential programs and also allows you to protect whatecer else you wish but does help to ensure a very quick shutdown.
Best!
HA