code: function (options, callbackFn) {
  
              var self = this;
              request.get(options.hostAndPort + '/ping',
                  function (error, response) {
  
                      if (response && response.statusCode === 200) {    //server up
  
                          callbackFn && callbackFn.call(self, true);
                      }
                      else {    //server down
                          callbackFn.call(self, false);
                      }
                  });
              return this;
          }
docs: //on exit loop through process array and kill everything process.on('exit', function () { processArray.forEach(function (proc) { proc.kill('SIGHUP'); }); }); creates a new phantomjs process