+hco #15945 Make Tcp and Http server binding closeable

No samples or documentation yet, since the API will change when we move to the new DSL.
Ticket #15945 should be left open.
Is this class needed? Wouldn't an anonymous class suffice? Because this class isn't even internal API, right? It's just a private implementation artifact used at just one place.