anchor.diff:          {value, {_, <<"on">>}}  -> put(datetime_mod, pgsql_idatetime);
           {value, {_, <<"off">>}} -> put(datetime_mod, pgsql_fdatetime)
       end,
  -    State2 = reply(State#state{handler = on_message,
  +    State2 = finish(State#state{handler = on_message,
                                  txstatus = Status},
                      connected),
       {noreply, State2};
   
   initializing({error, _} = Error, State) ->
  -    {stop, normal, reply(State, Error)};
  +    {stop, normal, finish(State, Error)};
   
   initializing(Other, State) ->
       on_message(Other, State).
  
positive.code:         <<"28P01">> -> Why = invalid_password;
          Any         -> Why = Any
      end,
      {stop, normal, reply(State, {error, Why})};
  
  auth(Other, State) ->
      on_message(Other, State).
  
negative.code: flush_queue(#state{queue = Q} = State, Error) ->
      case queue:is_empty(Q) of
          false ->
              flush_queue(finish(State, Error), Error);
          true -> State
      end.
  
  