What does ‘close call’ mean?

( np ) Near catastrophe, very dangerous situation. Buffy had a close call with the police when she ran a stoplight.