Finalize perf measurement on provider failure.

CodeInspection clean-up. Finalize performance measurement on provider failure.