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