getting thread state exception on client side when sending multiple messages