Fixes #5719 - poll directly after sending the cancel
Fixes #6237 - allow canceling remote execution actions