void OnConnectionClosed(AmqpObject sender, Error error) { lock (this.connections) { this.connections.Remove((Connection)sender); } }