Add checks on return code when applying some settings.