Disconnects and shuts the DuckDB instance down, which releases the file lock at once (a connection left open in a session keeps the lock until the session ends or the connection is garbage-collected).
See also
Other connections:
db_connect(),
db_connect_read_only(),
db_snapshot_path(),
resolve_db_path()