Don't log warning when socket is shutdown.

On OSX EINVAL is set when setsockopt with TCP_NODELAY is called when the socket is shutdown instead of ECONNRESET