HM: HandleShutdown for lucene