Check for thread interruption while checking index.
This enables clean shutdown of IndexerServlet while checking job runs.
Merge pull request #20 from gtxcontentconnector/hotfix-rt57722

Check for thread interruption while checking index.