cfg framework: fix shutdown crash for non registered modules