Fix weblogic shutdown backport

Fixed ClassDefNotFound exception on weblogic when application is going for shutdown since classloader is already deactivated and does not load new classes anymore