code: public void stop() {
          if (output) {
              System.setOut((PrintStream) out);
          } else {
              System.setErr((PrintStream) out);
          }
      }
docs: Stops intercepting System.out/System.err, sending output to wherever it was
  going when this interceptor was created.