function exitHandler(options, err) {
        mongoose.disconnect();
        console.log('clean');
        if (options.cleanup) console.log('clean');
        if (err) console.log(err.stack);
        if (options.exit) process.exit();
    }
//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) {
        mongoose.disconnect();
        console.log('clean');
        if (options.cleanup) console.log('clean');
        if (err) console.log(err.stack);
        if (options.exit) process.exit();
    }
function exitHandler ( options , err ) { mongoose . disconnect ( ) ; console . log ( 'clean' ) ; if ( options . cleanup ) console . log ( 'clean' ) ; if ( err ) console . log ( err . stack ) ; if ( options . exit ) process . exit ( ) ; }
so the program will not close instantly
so the program will not close instantly