Why do we want to reconnect if the write failed- wasn't the intention to shutdown? Is the idea that the write failed because the shutdown had already commenced? Sorry if I'm missing something.