call node-webkit close window on quit