Proper cleanup of IME during search

Seems at least 2012 devices got issues with e.g. keyboards  (=stopped
working) after the IME search.