Fixed for cleanup and releasing classloader when tenant is unloaded