If you close avast (the last option in the 'a' blue icon > Stop On-access protection), will the computer shutdown correctly?
Do you use a firewall? Which one?
Do you have any other antivirus installed in your system?
Any other security programs that could interfere?