fixed an issue where commands were not properly deleted after unloading a module