closing response streams