can we try resource this to close it when we are done with the stream?