Dispose resources providers

When unloading a class, resources providers instances created at load were not disposed.