Added better chat log management for connection lost and also local message for lost connection