code: function cleanup (exitCode) {
    if(_disabled) {
      return q.resolve();
    }
  
    var defer = q.defer();
  
    _readRunIdFile().then(function (run) {
      _logMessage('test finished. Your results can be viewed at: ' +
        'http://' + _hostname + ':' + _port + '/#/' + run.project_id + '/' + run.suite_id + '/' + run.run_id + '/rp');
      fs.unlink(RUN_PID_FILE, function (err) {
        if (err) {
          defer.reject(err);
        } else {
          defer.resolve();
        }
      });
    });
  
    return defer.promise;
  }
docs: Cleans up any created temporary files.
  Call this in Protractor's afterLaunch configuration function.
  @param exitCode Protractor's exit code, used to indicate if the test run generated errors.
  @returns {Promise}