DEV: Fix thor deprecation warning (PR #14680)

Deprecation warning: Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `DiscourseCLI`

GitHub