Closing the streams