Fixes one instance where #46 happens
Merge pull request #84 from sudorandom/issue-46

Instances with a TEAR_DOWN transaction state will cause the task_state to be 'deleting'