Fix the exception caused when trying to unload a module