Make sure any existing references are closed when creeating new one with
same name and that content is not updated on close after previous cancel
or close.