Fix connection window bugs, Make disconnect reason clear.