This reverts commit 02d26d42. While the commit fixed the bug in task T2225, it also would crash Ark upon closing the main window during a running job.