Metaphorically you should aim to be the second out the door really. It’s the first person out the door who starts the run, and starting the run is rarely rational. Once the run has begun, yeah you should aim to be out the door fast.
Unfortunately it’s very rare to have the knowledge and/or connections necessary to guarantee that you can not instigate a run, but still withdraw before the collapse.