KDE Connect takes a while to realize a broken connection. In the meantime the device appears connected. We know when the system is going to suspend, so we can tell the other device that we are about to be disconnected.
We should be able to use org.freedesktop.login1.Manager PrepareForSleep for it