Add handling for QueryError to rosie ls.