Add method to cancel the jobs in the queue.