anchor.diff:      end.
   
   terminate(Reason, _StateName, #state{mod=Mod, modstate=ModState,
  -        pool_pid=Pool}) ->
  -    %% Shutdown if the pool is still alive - there could be a race on
  -    %% delivery of the unregistered event and successfully shutting
  -    %% down the pool.
  +        pool_pid=Pool}) when ?normal_reason(Reason) ->
  +    %% Shutdown if the pool is still alive and a normal `Reason' is
  +    %% given - there could be a race on delivery of the unregistered
  +    %% event and successfully shutting down the pool.
       case is_pid(Pool) andalso is_process_alive(Pool) of
           true ->
               riak_core_vnode_worker_pool:shutdown_pool(Pool, 60000);
  
positive.code:             Mod:terminate(Reason, ModState1);
          _ ->
              Mod:terminate(Reason, ModState)
      end.
  
  code_change(_OldVsn, StateName, State, _Extra) ->
      {ok, StateName, State}.
  
negative.code:          trigger_handoff/2,
           core_status/1,
           handoff_error/3]).
  
  -define(normal_reason(R),
          (R == normal orelse R == shutdown orelse
                                              (is_tuple(R) andalso element(1,R) == shutdown))).
  
  -spec behaviour_info(atom()) -> 'undefined' | [{atom(), arity()}].
  behaviour_info(callbacks) ->
  