Add try/except clauses around input string filename/eval completions.
(#523)