I would start by disconnecting all USB devices, network cables, and printers except mouse and keyboard, and seeing it that makes a difference.
It appears you may have torrent software installed.
QuickLook Previews (legacy):
QuickLookPlugin - /Applications/Transmission.app
com.bittorrent.torrent
org.bittorrent.torrent *.torrent
Torrent "phone home." That could be interfering with shutdown.
Things with "Clean" or "Cleaner" in their name can cause issues as they interfere with elegant self-maintenance routines you paid Apple to include in macOS.
The developer of EtreCheck addresses this:
Configuration Files:
File /etc/sysctl.conf exists but not expected
in this User Tip: Fixing a hacked /etc/hosts file - Apple Community
I'm not sure yours is a problem but give the article a read and see if anything sounds familiar.