In a Quarto document, I have an iframe which initially points to a file on disk named loading.html, but then after a small amount of time, there is JS code replaces the URL with another one. If this change happens quickly, the Quarto server shuts down and displays this error message:

```
ERROR: connection closed before message completed
```

Previously, this was just a warning. It looks like the change was made in 7cd7bb8718b9c06eced8379554c53fdbd0fc7834. I think it can make sense for the server to shut down for some errors, but shutting down for this particular one is a bit aggressive.
2022-05-09T21:12:45Z
wch
closed
Web server shuts down too eagerly when error occurs
https://github.com/quarto-dev/quarto-cli/issues/839