Turning on the IO.autoclose flag to close stream when the parser finishes