2. Design Better Death Stars
This might be the single most obvious and easiest solution to them all. If you build a planet-sized space station (we're talking the US Government's debt deficit in Republic Credits here), then you don't leave a small hole two meters wide for the enemy to launch torpedoes into. Now the idea of a Space Station needing an exhaust port does make sense in that pseudo sci-fi way. Don't want our stormtroopers dying in the middle of the night to carbon monoxide ventilation problems, do? But why not place a metal slab with slits over it? Or raise the metal slab so the vents are on the sides? Or make the ventilation pipe more crooked inside so it's not a straight shot to the reactor core? What if? What if? What if? There are so many painfully simple solutions to the problem. I can forgive the idea of the second Death Star being blown up because it was still under construction, although - I'll say again - if the exhaust system leading to the reactor core isn't made in a stupid straight line then a ship isn't going to be able to pass through it.