catch socket send errors