Fix EZP-22053: allow to differentiate between exiting eZ5 context and cleanexit