Ignore SocketExceptions from socket.Shutdown()

This is the fix that works for me on Mac. Let me know if it works for you too.