try {
replicas.remove(monitoredLabel);
// Possibly the AMS is dead --> Start intercepting platform and MTP events on behalf of the
// new AMS if any.
AMSEventQueueFeeder feeder = null;
if (!snapshotOnFailure) {
feeder = new AMSEventQueueFeeder(new InputQueue(), myContainer.getID());
myMain.addListener(feeder);
}
myPlatformManager.removeReplica(monitoredSvcMgr, false);
myPlatformManager.removeNode(new NodeDescriptor(n), false);