It seems a good idea, #226, to trigger a terminated state once the goal is reached if a goal is present.