Improve failure handling in mail threads.