socket.tcp_server removes old socket if it exists and dead. closes #414