When the mouse was on the display of the secondary device, I tried to disconnect the network connection of the primary device, but the cursor still couldn't return. I made a series of attempts. Even when I reconnected to the network, I still couldn't restore the control of the keyboard and mouse. After restoring the network connection, it is also necessary to log out or restart the computer in order for the device to be used normally.
So far, the conclusion drawn is that if the mouse is on a secondary device, no matter which device goes offline, it will cause the keyboard and mouse to be unable to be controlled. Even if "Connected Device" pops up in the lower right corner of the screen after reconnecting to the network, the control of the keyboard and mouse cannot be restored normally. Only by restarting/logging out the computer can it return to normal.
I want to be clear, but I suspect you already know this, that this is not typical behavior. I could test this (and have hundreds of times) and not reproduce it. While you are experiencing this, I don't suspect it's every time either, its just when certain conditions are met and its unclear what those conditions are.
If your Primary PC had a touchscreen, I don't doubt that if you restarted the MP service from the systray, it would return the mouse control to it (were the network connection still disconnected)

Something is telling MP that the connection is still alive is the issue.
For the time being, ensure your mouse cursor is on the primary before you do anything to kill the secondary. At least try to restart the Secondary MP service on it (same as in the pic above).
Sean Drohan
Stardock Product Lifecycle Manager