The OnShutdown event is fired when the DBISAM engine is shut down. Assign an event handler to the OnShutdown event to take specific actions when an application deactivates the engine. The engine is deactivated by setting its Active property to False.
You should not toggle the Active property from within this event handler. Doing so can cause infinite recursion.