AGSMPLPUSH-47: Adding session.onClose call for userEventTriggered events.