Catch runtime exceptions when parsing to send an email