+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.
Maybe you're right, since the code is in the same file here. Didn't think of that.