COOPR-503: close stream