Errors in node-webkit running in Windows

Kept closing the node-webkit Window. Also added extra error catches, for
better debugging, and waiting for the file to completely load before
loading project.