- Use socket.error as the base exception