Add logs for ConnectionClosed and CommandFailed