This Side of Paradise - S1-E25
Plot hole: When Captain Kirk is the last person unaffected by the spores, he's on the bridge lamenting the fact that he is trapped in orbit above the planet since he can't pilot the ship alone. He also can't call for help because Lt. Uhura sabotaged long range communications. but Captain Kirk has somehow forgotten about the shuttle craft. He could have easily escaped on one of those.
Answer: After causing Norman to overload, all of the other androids shut down. The same could be said for the androids on the Enterprise.