This video is one of my favorites for teaching a dog to wait at a doorway instead of bolting out: https://youtu.be/kJboalA4oi4 That might be a good place to start.
How reliable is her "come" cue when she hasn't escaped? Starting to practice that frequently in less exciting situations, with a really tasty reward, might be helpful too. Keep practicing until it is almost automatic, and make sure she always gets something better than what she had in her practice sessions.
#PetBehaviorandTraining