Merge "Handle cancellation of 3rd party IME explicitly."