set the exit code to RERR_FILEIO is io_error is set when we exit. This