log socket errors