added catch for csv.Error