close stream not file