better recovery from connection loss, only retry if sending query fails, not when reading response
test for empty query