The OnShutdown event is fired when an application deactivates a session. Assign an event handler to the OnShutdown event to take specific actions when an application deactivates a session. A session is deactivated by setting its Active property to False or calling its Close method.
You should not call the TDBISAMSession Open method or toggle the Active property from within this event handler. Doing so can cause infinite recursion.