docs: function() {
            log('worker killer activated...');
            die_soon = true;
            if (ping_master_interval) {
              clearInterval(ping_master_interval);
              ping_master_interval = null;
            }
  
            log('I have ' + server.connections + ' server connections');
  
            if(server.connections === 0) {
              process.exit();
            } else {
              // Stop listening for new connections - remove watcher from the event loop
              server.watcher.stop();
              // Set process to die after serving existing connections
     
              // Track connections so we don't die in the middle of serving one
              var die_soon_interval = setInterval(function() {
                if (server.connections == 0) {
                  clearInterval(die_soon_interval);
                  die_soon_interval = undefined;
                  process.exit();
                }
              }, 1000);
              
              setTimeout(function() {
                if (die_soon_interval) {
                  clearInterval(die_soon_interval);
                }
                process.exit();
              }, 30000);
  
            }
          }