You need this function for troubleshooting only. Normally the system automatically performs the actions described below when you close Database Studio.
The system performs the following actions:
It logs off all users which are connected from Database Studio to the database.
It closes all views and editors opened by these users.
It ends all internal database sessions that Database Studio has implicitly opened for the selected database.