code: public void startHarakiriMonitor(InetSocketAddress address, boolean terminate) throws IOException {
          if (terminate) {
              harakiriMonitor.setTemrinateAction(new Callable() {
                  @Override
                  public Object call() throws Exception {
                      System.exit(1);
                      return null;
                  }
              });
          }
  
          harakiriMonitor.connect(address.getHostName(), address.getPort());
          harakiriMonitor.start();
      }
docs: Tell the harakiri monitor to connect to the given address.
  @param address The address the monitor should connect to
  @param terminate Whether the application should exit when a disconnect is detected on the socket
  @throws IOException If the monitor could not listen on the given port, or if the monitor is already listening