Have a rummage through the avastUI to get familiar with the things that avast can do and this is one of them (see image), also check the avast Help Center which has a wealth of information.
However, even with the option set to shut down the system, there may be other things running that may block that.