In ui.Failed, panic rather than exiting immediately

This way, defers are called before exiting
ignore .DS_store files
sanitize the config when login fails and always show target info.

[Finishes #66708436, #66708506]