For airplanes, they can do gliders fly even after they have the all engines failures during the flight. Then, the pilot can find the safe place to make the airplane landed while the gliders fly.
Now, every time I encountered to this situation
of my car running out of gas, I always think: