fix dbus module shutdown, add signal handler support