Addressing the issue where the Finder repeatedly shows network drives after waking up, even though they are not mounted.
The issue likely started occurring with a specific macOS Sonoma version.
A killall Finder
always helps, but perhaps a HUP signal would suffice. Additionally, one could observe whether deleting the Finder cache using rm -r ~/Library/Caches/com.apple.finder
might help. However, this would again require restarting (or signaling) Finder.
The problem is most likely not an error from the Network Share Mounter.