refactor: update node main instance management (#21562)
refactor: update node main instance management (#21562)


electron/electron,gerhardberger/electron,electron/electron,gerhardberger/electron,bpasero/electron,gerhardberger/electron,bpasero/electron,seanchas116/electron,seanchas116/electron,electron/electron,bpasero/electron,seanchas116/electron,bpasero/electron,seanchas116/electron,bpasero/electron,bpasero/electron,seanchas116/electron,electron/electron,gerhardberger/electron,gerhardberger/electron,gerhardberger/electron,electron/electron,electron/electron,bpasero/electron,electron/electron,seanchas116/electron,gerhardberger/electron