adding better error handling for nucmer