close stream Fix