process.on('uncaughtException', function (err) {
    console.error('UNCAUGHT ERROR: ' + err + '\n' + err.stack);
  });