void close()

Source

void close() {
  if (link != null) {
    link.close();
    link = null;
  }
}