Fix issue with premature connection close on export
Merge pull request #20 from socrata/urmilan/fix-export

Fix issue with premature connection close on export