Work on the sdim ibus ime

So that it will automatically reconnect when the server is restarted.

Signed-off-by: Bao Haojun <baohaojun@gmail.com>