@Override
 protected void onTermination(Throwable exception) {
   super.onTermination(exception);
   activeThreads.remove(this);
 }
 @Override
 protected void onStart() {
   super.onStart();
   activeThreads.add(this);
 }