Fix #2298. Catch TCL error.