Slight improvement to TaskProcessor error handling.