process.on('unhandledRejection', function(err) {
                logger.error('Unhandled rejection. Invoking shutdown.')
                if (err) logger.error(err.stack)
                system.stop(function() {
                    process.exit(1)