delete_all_matching_queries: rename memoization variables, remove rescue, add log listener