Check if the network is active before removing a peer from the peer set.