Stale wro4j-core.jar when undeployed on windows tomcat
My application cannot be undeployed correctly on windows tomcat because there seems to be a file-lock on the wro4j-core.....jar event after application shutdown.

I tried to manually call WroManagerFactory.destroy() without any luck.

I suspect wro4j itself causing this file to be locked.
How do I correctly shutdown wro4j correctly?

diff --git a/wro4j-core/src/main/java/ro/isdc/wro/util/WroUtil.java b/wro4j-core/src/main/java/ro/isdc/wro/util/WroUtil.java
index 2fa8c3979..e8ee3f09f 100644
--- a/wro4j-core/src/main/java/ro/isdc/wro/util/WroUtil.java
+++ b/wro4j-core/src/main/java/ro/isdc/wro/util/WroUtil.java
@@ -321,6 +321,7 @@ public final class WroUtil {
     try {
       final InputStream stream = WroUtil.class.getResourceAsStream("regexp.properties");
       final Properties props = new RegexpProperties().load(stream);
+	  stream.close();
       return props.getProperty(key);
     } catch (final IOException e) {
       throw new WroRuntimeException("Could not load pattern with key: " + key + " from property file", e);

['wro4j-core/src/main/java/ro/isdc/wro/util/WroUtil.java']