cleanup errno if tcp_connect success. closes #375