logger: fix panic issue if connect logger dbus service failed