Your typical homeowner's insurance policy has a "loss of use" or "additional living expenditure" provision to pay for temporary lodging. At the same time, you recover if a covered event destroys your home.
You are released from that responsibility when your mortgage is paid off.