Exceptions cause ClassLoader not to be collected