Small update:

Right clicking on the Avast icon and stopping the On-Access Protection will let the system shutdown proceed normally.