Add script to force end task. closes #2680