fix(server.go/peer.go) server.stop should stop heartbeat before close the log