[Console] ensure integer exit codes in events