Toast dialog and exit logic