lib: Handle properly the dbus session connection