dunno
Added some ugly to Logout()
Logout() deadlocks