Updated config to use ConfigurationSection
Added logging of error
Check if file exists before attempting to delete