less hacky job cancellation