Close stream responses on error