Disconnect support

Adds support for transport disconnection