[server] Clean up shutdown code, including race condition in
join-listeners and use close(sock, abort?: #t) rather than trying to
connect to listeners.
Merge pull request #78 from cgay/test-suite

[server] Fix race condition in join-listeners