Close flyout when model deleted