This may be called at any time to interrupt the current encoding, including when MediaCodec is in an expected state.