Handle queued errors.
Fix log handling.