code: public void closeConnection() {
          if (uncaughtExceptionHandler != null) {
              uncaughtExceptionHandler.disable();
          }
  
          try {
              connection.close();
          } catch (IOException e) {
              throw new RuntimeException("Couldn't close the Sentry connection", e);
          }
      }
docs: Closes the connection for the {@link SentryClient} instance.