When uninstalling a Flatpak app while having its application menu properties window open, that window becomes grey and crashes quite okay. A little improvement would be to detect if the app is available, and if not, output a message "this app is not installed on your system" / "The app was uninstalled" instead. This would be like Kwrites cached texts telling you that the original file was deleted.