improve correctness of closing connections on failure
improve correctness of closing connections on failure

may be related to https://github.com/ipfs/go-ipfs/issues/6197

(but I can't find one)

ipfs/go-libp2p,libp2p/go-libp2p,libp2p/go-libp2p