HCOLL-133 Avoid duplicate closing of TCP/UDP replicators