Capture error state in master-failover tests