handleClose method

void handleClose()

Implementation

void handleClose() {
  reset();
  if (!closed) {
    connect();
  }
}