close stream after carving