What software is using these Samba shares? When logging off, there is no normal software left running so the share is no longer in use, and if you have services that need access to the shares, then they already can't access these shares through the currently logged in user.
Explain how you would want to use these shares plz.