Also if you decide to use madExcept for bug reporting you can find the below code useful. procedure TUniServerModule.UniGUIServerModuleException(   Sender: TUniGUIMainModule; AException: Exception; var Handled: Boolean); var   CurSession : TUniGUISession; begin   if not (AException is EAbort) then   begin     if not (AException is UniErrorException) and        not (AException is EUniSessionException) then     begin       CurSession := UniSession;       if Assigned(CurS