anchor.diff:        // available and we call exit() in the next event loop cycle.
         // Otherwise this will wait for the process to exit.
         targetProcess.exitCode.then((exitCode) {
  -        exit();
  +        printErrorsAndExit();
         });
       } else {
  -      exit();
  +      printErrorsAndExit();
       }
     }
   }
  
positive.code:   }
  
    void close({killDebugee: false}) {
      void exit() {
        if (errorsDetected) throw "Errors detected";
        exit(errors.length);
      }
  
negative.code:     if (socket != null) {
        socket.close().catchError((error) {
          print("Error occured while closing socket: $error");
        });
      }
      if (killDebugee) {
        if (!targetProcess.kill()) {
  