Now reliably cleaning up all Sockets on exit
Put shutdown hook love in to separate utility class