made AfterTransaction return the callback errors if it runs immediately