Automatically reconnect transport to existing namespaces

Here is a small patch to automatically reconnect namespaces when transport is reconnected.