This is needed since we're iterating over the active streams and then closing/removing them as we go.