I stated that a new promise, `closingPromise`, is returned by `cancel()` but I am not sure if this promise should be exposed to the application. One option would be to use this promise as a return value for `socketClose()`. On the other hand in my example `mySocket.output.closed.then(....` is used to detect when the TCP connection has been closed.