Address ticket #352 catching an error when socket.getprotobyname fails