DeviceProxy may failed to reconnect on Windows

I can not reproduce this issue on Linux (don’t copy DeviceProxy), it looks like only on Windows.