watchdog is terminated after sort is finished