capabilities: Proper error handling when reading groups