code: public static void close() {
          if (storedClient == null) {
              return;
          }
  
          storedClient.closeConnection();
          storedClient = null;
  
          // Allow the client to be auto initialized on the next use.
          autoInitAttempted.set(false);
      }
docs: Close the stored {@link SentryClient}'s connections and remove it from static storage.