Pass $threadId on EVENT_TASK_FINISHED event