before removing all module managers