I may have missed it, but make sure the chunk has a chunk.close() done on it so any allocated memory gets returned.