Close the URLClassLoader before reloading the resources.

#354
Do you think that throwing the ValidatorManagerException here is safe? It is a RuntimeException.