title: Use a promise to exit a program
body: <p>I'm using the solution found here (<a href="https://stackoverflow.com/questions/31340063/how-to-change-url-on-chromium-kiosk-mode-via-ssh">How to change url on Chromium kiosk mode via ssh</a>) using node.js that is called from a bash script and it works great to change the current URL in chrome. The problem is that the node.js script hangs after it does it's thing. In the script, they say use promise-ws to exit the program then use process.exit().</p>
  <p>When I use process.exit() without the promise, the script closes too quickly before passing the argument to chrome. I am new to js and need some help coding the promise.</p>
  <p>Thanks for any suggestions.</p>