added tryCatch to estimate.risk.core