added delete statement to clean up job handle