Fix 2511 wds

This attempts to clean up the WDS module to disconnect after each RPC attempt.

Still kind of flaky, though. Any ideas?

It definitely fixes up the committed module, so I don't mind landing this as is if @Meatballs1 or @jlee-r7 doesn't have time to look at it, but this solution is incomplete.