Merge pull request #62 from xujyan/jyx/lost_task

Fix a bug that causes task status updates not correctly sent when the task is killed.