Add checks for missing values, and exit gracefully. We could simply write a message that says "variables ... have missing values. Try re-running without these variables." Or we could write the message, and then impute using a mean, reporting that this was done.