remove classLoader.close because it is a method of JDK 7