add smarts to the job closing.