My first thought was: how do elements created from merging neutron stars escape? I know they're insanely dense with gravity some 2 billion times stronger than the Earth.
So I googled it and discovered that material is still ejected in an event called a "kilonova". So named because its peak brightness is about 1000 times that of a typical nova.
It's impossible to imagine the energy involved in events like that.