made sure a job is terminated after being removed from ram