Please help me look at the code of this article, if one node is closed, other nodes will be closed, how to solve this problem?

Code a simple P2P blockchain in Go!