Logout closes dialogue whatever now.