service/index.js
function exitHandler(options, err) {
        if (err) {
            log.error(err.stack);
        }
        if (options.exit) {
            process.exit();
        }

        if(network) {
            network.emit('state.'+id+'.service.offline');
        }
    }
function exitHandler(options, err) {
        if (err) {
            log.error(err.stack);
        }
        if (options.exit) {
            process.exit();
        }

        if(network) {
            network.emit('state.'+id+'.service.offline');
        }
    }
function exitHandler ( options , err ) { if ( err ) { log . error ( err . stack ) ; } if ( options . exit ) { process . exit ( ) ; } if ( network ) { network . emit ( 'state.' + id + '.service.offline' ) ; } }
so the program will not close instantly
so the program will not close instantly