In the event of a missfire [pull trigger and get a click not a bang] , what does the shooter do?Immediately work the slide,chamber a new cartridge and continue shooting?

What would then happen if the failure to fire was a hang fire and the cartridge goes bang somewhere between being ejected from the chamber and hitting the ground?