anchor.diff:  handle_committed(Exit, #state{commit_delay = Delay} = State) ->
       ?error("Commit handler of a transaction process terminated abnormally: ~p",
           [Exit]),
  -    schedule_commit(Delay, State#state{commit_handler_pid = undefined}).
  +    schedule_terminate(schedule_commit(Delay, State#state{
  +        commit_handler_pid = undefined
  +    })).
   
   %%--------------------------------------------------------------------
   %% @private
  
positive.code: %%--------------------------------------------------------------------
  %% @private
  %% @doc
  %% Schedules terminate operation.
  %% @end
  %%--------------------------------------------------------------------
  -spec schedule_terminate(state()) -> state().
  schedule_terminate(#state{idle_timeout = IdleTimeout} = State) ->
      State#state{terminate_msg_ref = schedule_msg(IdleTimeout, terminate)}.
  
  %%--------------------------------------------------------------------
  %% @private
  
negative.code: %%--------------------------------------------------------------------
  -spec handle_committed(Exit :: any(), state()) -> state().
  handle_committed({committed, true, _}, #state{commit_delay = Delay} = State) ->
      schedule_terminate(schedule_commit(Delay, State#state{
          commit_handler_pid = undefined
      }));
  handle_committed({committed, {false, Changes}, Delay}, #state{
      module = Module,
      changes = Changes2
  