When you are finished working with a database, you can disconnect a named connection or all connections.
DISCONNECT ALL