in reply to Re^4: Eval thread and restart it.
in thread Eval thread and restart it.

Is there another way but eval?

To do what? Catch exceptions? No. To make exceptions non-fatal? You could execute the code in a child process