->close_when_empty; for stream after write