Destroy C api transactions on finalization