Fix bug where users aren't logged out after frequent chat reconnections.