private static void finish(Thread commandManagerThread,
			Thread messageReceiverThread) {
		try {
			log.info("commandManagerThread.join");
			commandManagerThread.join();
			log.info("commandManagerThread finish");
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			log.info("Receive InterruptedException");
		}
		while (messageReceiverThread.isAlive()) {
			log.info("messageReceiverThread is alive");
			messageReceiverThread.interrupt();
			log.info("interrupt messageReceiverThread");
			log.info("messageReceiverThread.join");
			try {
				messageReceiverThread.join();
				log.info("messageReceiverThread finish");
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}

	}