Proper error handling for ListRecords