Avoid error when ibus daemon dies while inside InsertMode