Salvage document after commit error