Extend the tests a bit and move the client handling to a *non*-daemon thread (so it doesn't hose up interpreter shutdown when it gets killed at shutdown).