the previous code snippet that was used in place of this loop over the process numbers actually killed all of the Node.js processes in one command:
```
NODE_INSTANCE_NAMES.each { |node|
        if node_proc_info.key?(node)
          node_processes_numbers << node_proc_info[node][0]
        end
      }
      %x[kill -2 #{node_processes_numbers.join(" ")}] if node_processes_numbers.size > 0
```
is it worth trying to do the same thing here (so that they all are killed in one command) or are you happy with killing them off one at a time?