Logout from shared folder

Open command line and type

net use \\computer_name /delete

or

net use \\ip_address /delete

or

net use * /delete