fix socket writer to send looong exceptions