Catch mail exceptions so that downloads are not marked as failed