System.out.println("Done waiting for callbacks, will shutdown callback server and client.");
// shutdown client and callback server
// callbackServer.getServerInvoker().removeInvocationHandler(
// callbackServer.getServerInvoker().getInvocationHandlers()[0].toString()
// );
client.removeListener(callbackHandler);
client.disconnect();
callbackServer.stop();
callbackServer.destroy();
System.out.println("Callback total number after shutdown is " + callbackHandler.getCallbackNumber());