fix: init config on all platform & stop runtime when exit
compatible code
cleanup
Merge pull request #9707 from yinjimmy/bugfix_runtime

Bugfix runtime