This uses a simple channel to detect whether a job is running or not, and moves all cancels to be in goroutines.