Sorry but many times disabling a program still leaves part of it running in the background.
Which firewall are you using. ???
You can’t install Avast while in Safe Mode.