All’s well that ends well

It is the end that matters, making up for previous failures and disappointments. Shakespeare used the proverb for the title of one his comedies.