A while back a pilot I knew had an engine failure in a Sapphire with a Rotax 503. The engine ran rough and cleared a few times. He said the fuel flow meter and other instruments were swinging wildly. Eventually he flipped upsidedown landing in a high wheat paddock and spent some time trapped trying to break open the pinned canopy. A long investigation showed there was fuel in the tanks, in the fuel line, in the carbys, and it was not contaminated. The CDI units were functional, the plugs and wiring were functional. Conclusion was that some temporary mysterious electrical fault caused the problem.