Extend try-catch blocks to cover inserted probes.

Fixes #265