remove close() in stream (revert 55f95e7138e895be46b5db0cf2eb1322961ee26d)