terminal UI: Fix circumstances when errors should be logged to stdout.