ignoring InvalidArgument.

This is thrown on Linux if the connection is closed by its peer.