restore the original classloader inside a try/finally