[LIBREPORT PATCH] gui/cli: unify and improve event exit code reporting