The `InteractiveConnector` object should emit a `close` event when the underlying stream closes, allowing teardown operations to be performed