@Override
    public void stop() {
        waitForTerminate();
        stopAllInstances();
    }
thread for core thread.

@return runnable profile.
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceManager.java