[sr-dev] git:master:4f6243e8: core: more use of ksr_exit() macro to follow --atexit param