fixed ERRAI-470 - errai-cdi-stress-test is leaking a thread after undeploy

fix for  ERRAI-470