Fix logging in retry decorator.

If we catch an exception we don't want to retry on, don't execute
exc_callback() -- otherwise we get confusing log messages.