What does your lawyer say?
This is not a scenario is happening to us right now, however, we are still thinking the worst case. We don't have a lawyer yet. we thought other game devs/designers may have already dealed with such cases. asking here may provide us with some answer before we getting the contractor's contract ready.