Fix init/shutdown process in wkb-ibus and wkb-ibus-test