Close the URLClassLoader before reloading the resources.

#354