catch ioerror on csv file