Protect task_finished. task_finished could be called after queue.abort()
was called, as mentionned in lp:1133322.