Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more
Tell this reader to close the IO when terminated (Triggered by invoking CSV::Reader#close).
# File csv.rb, line 630
def close_on_terminate
@close_on_terminate = true
end