Fix to just run one exit dialog