Proper termination and initialization of the ConfigManager.