It should be noted that the browser->close action is buggy in node-webkit. In Windows 8 it's prone to crashing the application, and I've seen plenty of reports from Windows 7 users that it's given them issues, too.
In actual an actual web browser, and also in CocoonJS, however, it should definitely work.