add socket error report for the client side