Improving logging and dealing with task submit failure