If the player is viewing a dialog and the server restarts(Not through GMX) or he lost connection, HidePlayerDialog does not work for this player.
My suggestion is that HidePlayerDialog should "force" the closing of any possible dialog, even if it hasn't gone through ShowPlayerDialog.