Don't crash when sockname()/peername() fails