Handle query failures without the wire flag.

[ fix #150 ]