Remove jobs from the priorities table when a job is finished