Finalize current transaction.
Registered actions will be performed in the registration order. (Except for ta_remove_nothing())