Fix an issue where collapsing mode + quit could show the wrong hostname