public synchronized void stop(StopContext context) {
log.debugf("Stopping Arquillian Test Runner");
if (resource != null) {
XEnvironment env = injectedEnvironment.getValue();
env.uninstallResources(resource);
}
try {
if (jmxTestRunner != null) {
jmxTestRunner.unregisterMBean(injectedMBeanServer.getValue());
}