This is probably no longer strictly necessary right now since we close the panel, which unregisters all the listeners that would update the model, before the replacement starts. I just wanted to be safe.