Filter socket errors.