Fix resource leak in query queue