Remember to clear the unloaded module list for the last active entry in the command threader, the module handle between load/unload may stay the same which would keep a reloaded module from being usable depending on the implementation of dlopen.