This is actually a pretty well-covered aspect of liability law. Each party has to take reasonable care to mitigate risk. It's not the kind of problem that you are making it out to be, and there's a huge body of case law establishing what is reasonable and what isn't.