if we error on write, then reconnect