CBIDXT-246 Exit query server on stdin pipe close