chore(modal): close modal dialogs when session expires...

... or the location changes

related to CAM-2558