Handle errors in CSV data as discussed in #16