.
Season two episode six of Star Trek (The Original Series) gave us The Doomsday Machine, where Kirk and company battle a automated weapon that destroys planets. Hampered by a traumatized Starfleet Commodore they eventually deactivate the mechanism leaving floating derelict in space.
With a hull of neutronium the machine had been impervious to the Enterprise’s weaponry the victory had hardly been assured.
You might be forgiven if you assumed neutronium was a fantastical substance invented by delirious writers much like ‘Vibranium’ or ‘Adamantium’, but you would wrong. Neutronium is matter that has been so compressed by immense gravitational forces that the protons and electrons have merged with the neutron at the nucleus of the atom forming pure nuclear material with nearly unimaginable densities, Neutron stars have nearly enough mass to become Black Holes, but not quite.
It is unlikely that the ‘Doomsday Machine’, even though it was ‘miles long with a maw that could swallow a dozen starships’ possessed stellar masses of neutronium. (That would make for an interesting battle, fighting a machine with the gravitational effects of a star.) To maintain its shape and function the mechanism would need to counter the immense gravitational forces generated by the neutronium hull.
When the Enterprise departed the battle volume the machine still retained it shape. If it was truly and utterly dead, it should have collapsed into a sphere, but it did not. Something inside the doomsday machine still functioned, fighting the terrible crushing force of gravity.
It was not dead. Now, there’s a space for some fan-fiction or a tie-in novel.