+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.
I won't change this now. Since I need to build, but I'll comment in the ticket.