Avoid ObjectDisposedException after SSDP socket is closed
Divide test code