Server entry removed from tree view after logout

The tree item of the server was not removed from the tree view after logout.