better error handling in src/main/groovy/ImportData.groovy