Mark pending blocks as failed if they succeed.

**DO NOT MERGE:** This needs final review.

See #1208 for background.

@grddev @myronmarston @JonRowe @markijbema