Slightly refactored test and log_client.
Async log client now also retries on parse errors.