Added auto-resubmitting of tasks that were stopped in progress