dbus: use dbus.Wait() to hook close event