@Override
            public void onExpiration(Session session) {
                onStop(session);
            }
intercept session destroy session listeners and destroy the beans

@param sessionListeners
@param sm
support/jakarta-ee/src/main/java/org/apache/shiro/ee/cdi/ShiroSessionScopeExtension.java