take advantage of rogerwang/node-webkit#745 and log the error stack