Add after_final_failure callback.

This adds the ability to execute logic when the final retry has failed and won't be attempted again.