Preventing race condition by resetting fault count at the right time.