terminate_jobs function

Terminate Jobs