error if query is canceled