Better error handling on task updates