Using tryCatch in NOMAD, modified default degree.max/segments.max