net: rework masternode connection logic (may cause crashes)
net: rework masternode connection logic (may cause crashes)

machinecoin-project/machinecoin,machinecoin-project/machinecoin,machinecoin-project/machinecoin,machinecoin-project/machinecoin,machinecoin-project/machinecoin,machinecoin-project/machinecoin