[Security] fixed a leak in the ContextListener
[Security] fixed a leak in ExceptionListener