Catch runtime exceptions when building block messages