Rework input method teardown logic
Explicitly destroy input method rather than wait for the input method connection to be destroyed by WaylandServer, it's less error prone.
Alternative to !1518 (closed)
Explicitly destroy input method rather than wait for the input method connection to be destroyed by WaylandServer, it's less error prone.
Alternative to !1518 (closed)