fixes #243: setting/logger,commander: fix the bug that cortex publish not exit with code 1