Added exception checking into ConfigManager