Looking for a movie or tv show episode where it is set in the Wild West Days.
I remember most of the plot. A guy is hiding in a wild west town (as a doctor) to avoid intergalactic war where he is a war criminal and is being hunted by a robotcyborg soldier that he was responsible for creating. The movie ends with the bad guy trying to escape in the hunters ship and it explodes. At the end it had a woman talking about the town and she was the granddaughter of the little girl in the town.