Avoid classloader leak in Tomcat (JAVA-343).