private void CompleteConnection(int stageId) { if (stageId != Boundary) { var activeConnections = _shutdownCounter[stageId]; if (activeConnections > 0) _shutdownCounter[stageId] = activeConnections - 1; } }