public void RemoveProducer(ProducerId objectId) { connection.removeProducer(objectId); if(!this.closing) { producers.Remove(objectId); } }