Handle ZK failures more robustly.