Improve log_content_open() error handling