OnDelSession 

This event is fired when an event that closes a SAP GUI session is received.

It is equivalent to the GUI Library's It_SetDelSessionHook request.

This event is applicable for both the OCX and the EXE versions.