process.on('SIGINT', function() { console.log("Caught interrupt signal"); if (i_should_exit) process.exit(); });