Consolidate resetting the failure counter