Refactoring listener to support notification for multiple txn lifecycle events.