add exception handling for ping pong client class