Better XDR diagnostics
Handle write errors while saving index cache