support runtime error catch. Fixes #10