handle socket errors