I remember there being a crash years ago that was probably covered on Air Crash Investigations. It was a 747 I think (4 engines) and one engine broke off mid flight, surged forward (due to the remaining fuel and sudden lack of load as it was detached) and took out the other engine on that wing after it lost thrust.
The cause ended up being dodgy aftermarket shear bolts that are used to attach the engines. These are bolts that are specifically engineered to break at known locations and loads, so that a massive unexpected load on the engine will break off just the engine rather than the wing (a theoretically slightly less catastrophic failure).
Seeing the image of the engine torn off and flying over the plane looks very similar to what happened in that older accident. One of the big issues with engine loss seems to be that the fuel (and hydraulic fluid) keeps flowing after the engine has separated. Perhaps some failsafe to automatically shut off the flow of these flammable fluids would help? Though in this specific case there may not have been much that could be done with a fully laden plane losing an engine at V1 on takeoff.