Record credit failures

Another step of #2508. Fixes #1811. Built on top of #2579.
This makes me nervous. No way around this?

Also, how about `/callbacks/balanced` instead? Seems not unlikely that we'll have additional callbacks in the future.