That would explain why Shatner decided to chew scenery like it was going to be his last meal.Yep. The final day of shooting was on January 9, 1969 and, I believe, NBC's cancellation came down to the actors and crew on January 2. So while the script itself wasn't the product of knowing the series was going to be dead, the actors and producers knew good and well that this was their last.