public function removeDriver($driver)
    {
        if ($driver instanceof Driver) {
            $driver = $driver->name;
        }
        if (!$this->hasDriver($driver)) {
            return;
        }
        $this->removeFromBackupDrivers($driver);
        unset($this->drivers[$driver]);
    }