Will it check if there are still some instances of classes exported from library? We must be sure that all instances are deleted before unloading otherwise runtime will not be able to call destructors that will cause a runtime error. But if this operation is expensive we surely can force user to take care about this.