Currently Ark segfaults when either stopping a running job using the notifications system tray icon or simply closing Ark while a job is running.
To fix libarchiveplugin we need to connect the finished signal of Job to QThread::terminate() instead of QThread::quit() in the worker thread. This is likely due to the event loop of the worker thread already being dead and hence quit() having no effect.
For CliInterface we simply wait for 1 second after killing the process. This avoids the assertion failure in destructor of CliInterface.
When closing Ark main window while a job is running Ark crashes due to KJob::finished signal being connected to Part::ready and the JobTracker destructor killing the job non-quietly. This is fixed by connecting to KJob::result instead and killing the job quietly (KJob::result is not emitted when job is killed quietly).