public function stop()
    {
        if (!$this->currentImport instanceof Import) {
            throw new Exception('Unable to stop the current import, please start an import first', 1426638563);
        }
        $this->currentImport->end();
        $this->importRepository->update($this->currentImport);
        $this->lastImport = clone $this->currentImport;
        unset($this->currentImport);
    }