public void stopInputClient() throws Exception { if (inputClient != null) { inputClient.stop(); inputClient.join(); } }