Updated with comments and markup. Removed UI popups for errors.
The removal of UI popups for errors makes the logging behaviour
consistent with our other engines.