Closing connection when reading lots of data improved.