Fix events so they publish upon success of the transaction if there is one.