Catch errors thrown from pure computations.