If you're considering exporting for desktop (Node-Webkit), I'd suggest that you use the JavaScript command "window.close();" instead (also part of the browser object). The browser close action has a known issue with Node-Webkit projects on Windows 8 and sometimes Win 7.