You don't need to do anything specific. If the last connection is
closed, the database file is closed as well. Possibly the linger setting
has an effect on this, but I'm not 100% sure it also applies for
embedded or only for Firebird server.
Mark
--
Mark Rotteveel