You are right that "telling her off" won't help. My unbreakable first rule of dog training is "A dog that comes is good dog". Always, in every single circumstance, no matter what. And all my dogs have a 100% robust, guaranteed recall.
Whilst yes, running out the door is equally a safety issue, concentrate on the recall so that the consequence of the open door and a moment of impulsiveness can be limited quickly.
Lots and lots and lots of recall training. Dog must know that coming is always good, always fun / enjoyable, always the easy choice to make because always good. Build it up until the recall is a reflex, no thought or decision involved.