Cancel decoding, periodic checks for cancellation.