Dynamically unloading a module