Refactored LogViewerClient to handle specific exceptions.