Kirk

Kirk escapes execution because the man who once wore shorts saves him, and then Scotty for some reason thinks it would freak people out to turn off the lights on the planet, and it happened at the perfect time!