restoring classloader after getting engine