remote-desktop: Close sessions on prepare-shutdown
When finalizing, the MetaDisplay instance will already be gone, so to be able to gracefully tear down the clipboard integration, make sure to close sessions before the display is closed, i.e. on prepare-shutdown.