We weren't removing the ID from suburls in the IO error case.
Also, it's not necessary to decrement pagenum in case of errors;
it's calculated again each time from its position in suburls.