Better traceback and logging in cmdline exe.