title: Hibernate Search 4 thread not terminated
body: <p>I have written a beginner-level program using Hibernate Search 4. Whenever I run the program the required transaction is performed (e.g. saving records in database), but the program does not terminate. It seems that a thread is running in the background but I can't figure out which thread is running or why.</p>
  
  <pre><code>public static void main(String[] args) {
  
      Session sess= HibernateUtil.getSf().getCurrentSession();
      FullTextSession fts = org.hibernate.search.Search.getFullTextSession(sess);
  
      Item it= new Item();
      it.setTitle("Batman");
      it.setDescription("bat man super hero ");
      Item it2= new Item();
      it2.setTitle("Mario");
      it2.setDescription("super mario was game ");
  
      Transaction t= fts.beginTransaction();
      fts.save(it);
      fts.save(it2);
      t.commit();
  </code></pre>