[PATCH 3/4] TaskAPI: fix saving of the result after wait intr and kill