fix(security): close rejected Azure managed-identity response streams (#2416)