close reader even if not parsed on error