What would you do if you were on a plane that's having engine trouble?

The people on JetBlue flight 1416 from Long Beach, California to Austin, Texas on Thursday had the chance to answer this question.

About 10 minutes into the flight, the second engine gave out and the pilot had to turn around. This video documents the scary moments that followed -- while smoke filled the plane, one guy decided to take what he may have thought was the last selfie of his life (you can see him at the three-second mark), while another guy appears to smile through his oxygen mask and wave.

It's clearly a frightening scene (just take a listen to the screaming baby).

As it turns out, the passengers and crew were all safe. But it's good to know that in moments when our mortality is on display, some of us focus on the important things.