Adding the ability to get the transaction to allow listeners to easily throw exceptions