Make sure the JarResource always gets closed. By closing it explicitly we ensure the underlying JarFile is always closed. Not doing so causes all sorts of problems (up to hitting a JVM bug that, on a Mac, will immediately crash the JVM).