void close_db_env(DbEnv *pdbenv)
Close specified database environment handle regardless of reference count.
Make sure the environment is not used by any other databases.
Normally you don't have to close any database or environment handles, they will be closed automatically.
Though you still have the following API to close them.