Oh no, it isn't neccesarily a flaw on your part, simply how game mechanics might work. Reactors explode, Missile Bays explode, Their ammo factories and ammo explode. Unless you intended to stretch that ship out, not much I can think to improve. Unless you add more shielding.