Make sure scheduled actions can be canceled during flush