Handle background errors and truncate the subject if it is very long