Don't close the IO object if it was passed.