Do not define SocketError as Ruby 1.8 is not longer supported