Properly handle `IOError`'s and `OSError`'s at the parser level.