[FIX] XQuery: stopping running queries