client side communication socket exception handled