active.set(false);
int size = threads.size();
for (int i = 0; i < size; i++) {
SmartThread thread = threads.elementAt(i);
thread.interrupt();
try {
thread.join();
} catch (InterruptedException e) {
LOG.error(e.getMessage(), e);
}
}
eventManager.shutdown();