When a multi-session agent shuts down, it runs any Multi-session Agent Shutdown procedure that you have defined for the PAS for OpenEdge instance. This procedure can be used to perform tasks required when shutting down the agent and the server sessions that it manages. One common task is to shut down all self-service database connections that were started in the Multi-session Agent Startup procedure.
The session that executes an Agent Shutdown procedure runs effectively session-free. Global data that is set in this session expires when the session terminates and is not available to other sessions of the multi-session agent. You use the following property in openedge.properties to set them: agentShutdownProc.