Proper open and close of a TunnelEndpoint.
Rename string to make it clear it comes from the endpoint.