BUG: use shutdown() instead of close() for sockets

This keeps the handle open long enough to raise the closed event to
the client.
BUG: Merge branch 'fix_socket_shutdown' of https://github.com/ihnorton/OpenIGTLink into 19-fix-socket-shutdown