Fix #231 Adding a "tag" to queryCompletionListener and queryFailureListener

refs #231