internal error, save commit for rust issue
added way to customize handling of finished transactions