Wrapped the term->readline calls in evals to catch errors