Moved the read_batch abort check below the code that handles the