API endpoint for stopping the execution of tasks

Yes, it should return at that point. I must have missed that.