public function onDisable() { if ($this->provider instanceof DataProvider) { $this->provider->close(); } }