batch_terminate_job function

Terminates a job in a job queue