native-wayland: improve cleanup