error catching for csv_import