implemented ability to cancel running jobs