Error handling for retrieving log files.