Refs #5719 - wait for the cancel event being processed

For better feedback for the user that something happened.