Why would you need to open avast from ObjectDock in the first place ?
What are you actually opening (avastUI.exe ?) which you have a tray icon for.

Of course you can’t close avastUI from the task manager the self-defence module would stop you from doing that.