anchor.diff:      return false;
     }
     verboseWire = options.arguments.contains("--wire");
  -  
  +
     // Pick a port in the upper half of the port number range.
     var seed = new DateTime.now().millisecondsSinceEpoch;
     Random random = new Random(seed);
  
positive.code:   }
  
    void close({killDebugee: false}) {
      if (errorsDetected) {
        for (int i = 0; i < errors.length; i++) print(errors[i]);
      }
      if (socket != null) socket.close();
      if (killDebugee) {
        targetProcess.kill();
        print("Target process killed");
      }
      if (errorsDetected) throw "Errors detected";
      exit(errors.length);
    }
  }
  
  
negative.code:       });
      },
      onError: (e) {
        if (++retries >= 3) {
          print('unable to find unused port: $e');
          var trace = getAttachedStackTrace(e);
          if (trace != null) print("StackTrace: $trace");
          return -1;
        } else {
          // Retry with another random port.
          RunScript(script);
  