Add detection of what type of failure