Ignore I/O exceptions where not applicable.
Ignore I/O exceptions where not applicable.

While code accounts for connection state, in rare cases, the underlying socket state can change and cause I/O exceptions accessing the buffered writer during the reconnect process.  Ignore these exceptions to allow higher level reconnect code to reestablish the connection or error out.

No automated test as behavior when this occurs is undefined/unpredictable.

cstlaurent/csnats,nats-io/csnats,stephenjannin/csnats