anchor.diff:  %% @spec terminate(Reason, StateName, State) -> void()
   %% @end
   %%--------------------------------------------------------------------
  -terminate(_Reason, _StateName, _State) ->
  +terminate(_Reason, _StateName, #state{riakc_pid=RiakcPid}) ->
  +    riak_moss_utils:close_riak_connection(RiakcPid),
       ok.
   
   %%--------------------------------------------------------------------
  
positive.code: %%                   {stop, Reason, Reply, NewState}
  %% @end
  %%--------------------------------------------------------------------
  handle_sync_event(_Event, _From, StateName, State) ->
      Reply = ok,
      {reply, Reply, StateName, State}.
  
  %%--------------------------------------------------------------------
  %% @private
  
negative.code:     %% anything to make sure
      %% this call succeeded
      riakc_pb_socket:put(RiakcPid, RiakObject),
      {next_state, waiting_update_command, State#state{riak_object=undefined, manifests=undefined}}.
  
  
  %%--------------------------------------------------------------------
  