fix aggregatestream.close()
Merge pull request #1194 from jonathanong/patch-1

fix aggregatestream.close()