So I was thinking - Toriel isn't weak. She proves to be a very effective boss fight, and can use magic with some fair effectiveness. So when you run away, or leave her be, why doesn't she destroy the door? She has the time.
So I thought about it..
She was probably waiting for San's to show up, so she could say goodbye.