static void run(Runnable task) {
        try {
            task.run();
        } catch (CompletionException e) {
            throw e;
        } catch (Exception e) {
            Throwable cause = e instanceof ClickHouseException ? e : e.getCause();
            if (cause instanceof CompletionException) {
                throw (CompletionException) cause;
            } else if (cause == null) {
                cause = e;
            }
            throw new CompletionException(cause);
        }
    }
Runs the given task immediately in current thread. Exception will be wrapped
as {@link CompletionException}.

@param task non-null task to run
@throws CompletionException when failed to execute the task
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseClient.java