Looks like since i'm trying to develop a node-webkit app, stuff like the window object are also available in the same context, and the nodejs connection wasn't able to handle it and shut down, this behavior doesn't seem right in any case but removing the "alert" lines solved the issue.
I would prefer if it doesn't close the connection but only throw the error and let me fix it and continue but i may be missing something here. I created an issue in the github project:
https://github.com/LightTable/LightTable/issues/1322
Also, i created this entry in the LightTable group to look for answers on how to setup the best environment to develop node-webkit applications in LightTable:
https://groups.google.com/forum/#!topic/light-table-discussion/_moWl1KQWf8
More info there...
Thanks.