app_terminal.py:  Fixed a bug with plugin error reporting when debug logging is enabled.