public BaseTest() {
		tg = new ThreadGroup("Test process");
		Resource.loadergroup = tg;
		Audio.enabled = false;
		Runtime.getRuntime().addShutdownHook(new Thread() {
			public void run() {
				printf("Terminating test upon JVM shutdown...");
				BaseTest.this.stop();
				try {
					me.join();
					printf("Shut down cleanly");
				} catch (InterruptedException e) {
					printf("Termination handler interrupted");
				}
			}
		});
	}