Issue #4 make more robust against connections closing by running worker in loop

https://github.com/tleyden/open-ocr/issues/4