public void shutdownAndAwaitTermination(ExecutorService pool) {

		pool.shutdown();
		
		try {
			
			if (!pool.awaitTermination(60, TimeUnit.SECONDS)) {
				pool.shutdownNow();
				if (!pool.awaitTermination(60, TimeUnit.SECONDS))
					System.err.println(this.threadName + " did not terminate.");
			}
			
		} catch (InterruptedException ie) {
			pool.shutdownNow();
			Thread.currentThread().interrupt();
		}
		
		System.err.println(this.threadName + " did terminate.");
	}