destroy method for jobs