Fix failure detection.