Close the URLClassLoader before reloading the resources.