Handle Plasma windows being closed
The wayland integration tries to abstract that the underlying wl_surface might differ from the window. It handled the case of the window hiding, which deletes the wl_surface, but not the case of the window closing which deletes the platform window.
This patch now handles both cases.