cleaner shutdown for tcp server to eliminate race
cleaner shutdown for tcp server to eliminate race

vivisect/synapse,vertexproject/synapse,williballenthin/synapse,vertexproject/synapse,imjonsnooow/synapse,vertexproject/synapse