for (var i = connections.length - 1; i >= 0; i--) {
                connections[i].end();
            }