anchor.diff:            {ssl_imp, old}, {mode, binary}],
            Connection#apns_connection.timeout) of
       {ok, Socket} ->
  -      {ok, #state{socket = Socket}};
  -    {error, Reason} ->
  -      {stop, Reason}
  +      {ok, #state{socket = Socket}}
     catch
       _:{error, Reason} ->
         {stop, Reason}
  
positive.code:                args   = Args,
                 body   = Body,
                 image  = Image,
                 key    = Key} ->
        Json = {case Body of
                  none -> [];
                  Body -> [{<<"body">>, unicode:characters_to_binary(Body)}]
  
negative.code:                               none -> [];
                                Image -> [{<<"launch-image">>, unicode:characters_to_binary(Image)}]
                              end ++
                  [{<<"loc-key">>, unicode:characters_to_binary(LocKey)},
                   {<<"loc-args">>, lists:map(fun unicode:characters_to_binary/1, Args)}]},
        do_build_payload(Params, [{atom_to_binary(Key, utf8), Json} | Payload]);
      _ ->
  