Added replication aborting on failure ratios

Change-Id: If63b9ed16e1477176ebae851e32905cf72917387