index.js
//so the program will not close instantly
so the program will not close instantly
so the program will not close instantly
function exitHandler(options, err) {
    var sshKeys = Object.keys(sshPortMap);
    var vncKeys = Object.keys(vncPortMap);
    _.each(sshKeys, function (item, index) {
        destroyTunnle(sshPortMap[item]);
    });
    _.each(vncKeys, function (item, index) {
        destroyTunnle(sshPortMap[item]);
    });
    process.exit();
}
function exitHandler ( options , err ) { var sshKeys = Object . keys ( sshPortMap ) ; var vncKeys = Object . keys ( vncPortMap ) ; _ . each ( sshKeys , function ( item , index ) { destroyTunnle ( sshPortMap [ item ] ) ; } ) ; _ . each ( vncKeys , function ( item , index ) { destroyTunnle ( sshPortMap [ item ] ) ; } ) ; process . exit ( ) ; }
so the program will not close instantly
so the program will not close instantly