... remove destructor as it breaks composite

same fix as upstream part of 0ca8185.
... add config parameter
... use config parameter to create transport