socket errors are OSError