jobd: check for finished jobs in main loop