Fixed replicaset restart process handling