This variable instructs that loaded objects be closed according to the dbclose() function, or delays the closing of objects registered with the atexit() function until just before the exit() function is called.
Upon shutdown, most UNIX runtimes call the dlclose() function on objects that have been loaded. However, on AIX, HP-UX, and FreeBSD runtimes, when an object being closed has registered a function with atexit(), this could cause a crash in exit() because the object is already closed and no longer available to the process. Linux and Solaris runtimes call the functions registered with atexit() just before the object is closed, thus avoiding this problem.
Use the CLOSE_LOADED_OBJECTS configuration variable to manage this problem.
CLOSE_LOADED_OBJECTS={0|1}