Allow TaskThread to raise exceptions outside