Cleanup - Interactive

Detect when an agent is running via tty/interactive user interface, and respond accordingly. For example, when there is a missing input file, give an appropriate response, including the name and path of the expected file, rather than falling back to failsafe.