function closeWindow() {
  var window = remote.getCurrentWindow();

  window.close();
  process.exit(1);
}
/**
 * Close and Exit Process when Close
 */
Close and Exit Process when Close
Close and Exit Process when Close
function closeWindow() {
  var window = remote.getCurrentWindow();
  window.close();
  process.exit(1);
}
function closeWindow ( ) { var window = remote . getCurrentWindow ( ) ; window . close ( ) ; process . exit ( 1 ) ; }
Close and Exit Process when Close
Close and Exit Process when Close