anchor.diff:      true ->
           twig:log(error,"Worker ~p died with reason: ~p", [Pid, Reason]),
           {stop, {worker_died, Pid, Reason}, State2}
  -    end.
  -
  +    end;
  +
  +handle_info(timeout, InitArgs) ->
  +    try do_init(InitArgs) of {ok, State} ->
  +        {noreply, State}
  +    catch Class:Error ->
  +        Stack = erlang:get_stacktrace(),
  +        {stop, shutdown, {error, Class, Error, Stack, InitArgs}}
  +    end.
   
   handle_call(get_details, _From, #rep_state{rep_details = Rep} = State) ->
       {reply, {ok, Rep}, State};
  
positive.code:         [BaseId ++ Ext, Source, Target, to_binary(Reason)]),
      terminate_cleanup(State),
      couch_replicator_notifier:notify({error, RepId, Reason}),
      couch_replicator_manager:replication_error(Rep, Reason).
  
  
  terminate_cleanup(State) ->
      update_task(State),
  
negative.code:     end.
  
  init(InitArgs) ->
      {ok, InitArgs, 0}.
  
  do_init(#rep{options = Options, id = {BaseId, Ext}} = Rep) ->
      process_flag(trap_exit, true),
  