Fix retrying mechanics, don't return empty log on failure.