Make sure modules run their fullUnload before their modes are removed
Ensure non-core modules unset their modes when they are unloaded