This is very frustrating. I open a Windows SMB share like this:
After closing the window, my Mac kept folder/files open and I had to close the SMB session from the server.
How do I just close all open SMB sessions on my Mac?
Closing the Finder window is not enough to stop the SMB session. You need to eject the SMB share in the same way you eject external drives or a CD/DVD, that is, select the SMB share icon on the desktop and press ⌘E.
Alternatively, you can right-click the SMB share icon and select Eject :
or, in a Finder window, press the eject button next to the server name: