closing in stream