Move edd_update_edited_purchase and wp_update_post higher up so that it runs before any ther payment data is changed. If we can't update the main payment record, nothing else should change. #2500