Raise TaskWorkerException. Fixes #4494