javascript kill on ctrl-c
process.on('SIGINT', function() {
console.log("\nGracefully shutting down from SIGINT (Ctrl+C)");
console.log("Disabling Adapter...");
wireless.disable(function() {
console.log("Stopping Wireless App...");
wireless.stop(function() {
console.log("Exiting...");
process.exit();
});
});
});