Ensures the connection is closed, before the object is destroyed.

Returns

void

Source

						public function __destruct() {
		if ($this->isConnected()) {
			$this->disconnect();
		}
	}