Updated emitted events.

Now events 'warning' for request errors and 'error' for when the
specified retry is reached.