And if you have any sense, the contract expressly limits your total liabilities to the client to at most what they have already paid you.
(ps. With some careful lawyer drafting to exempt things which can't be limited in that way (negligence etc.), while carefully wording the exemption so any part voided doesn't take the whole limitation with it.)