Stops I/O loop after execution in tesseract client.