g_bus_get_sync proper handling of errors