qemu-socket: Polish errors for connect() and listen() failure