[sr-dev] git:master: core: proper destroy of tcp connection at shutdown