add task error logging