Add Mail error catching.