fix aggregatestream.close()