Bro,
Do you by chance have any USB devices plugged into your computer? Some people claim that these devices can cause avast! to hang on shutdown.
Are your temp directories all empty?
Also, maybe as an experiment, an avast's "program settings" (right click blue "a" circle icon in taskbar), in the troubleshooting section, switch the database from OBDC to XML... see if that helps.