Remove query from public list when it's destroyed

Signed-off-by: Don Naegely <naegelyd@gmail.com>