How to close or archive streams 1