message: Reset client writer to None upon disconnection from server
diff: @@ -544,6 +544,7 @@ impl Client {
  return Ok(());
  } else {
  connector.get_options().disconnect_callback.call();
  + self.state.write.lock().writer = None;
  }
  }
  