Now closes the listenSocket after a connection is accepted, allowing for
reuse of the same address.

Tidies up NetworkSpec test cases.