handler socket error event