improve reporting of internal failures
UI: reset context on new program input