Fix use-after-destroy of TaskComposer.
Fix use-after-destroy of TaskComposer.

Appears to work fine now. No errors in tsan.

Themaister/Granite,Themaister/Granite,Themaister/Granite,Themaister/Granite,Themaister/Granite,Themaister/Granite