```
Testing and debugging after shutdown are harder if the node was run
through the gui, because errors and warnings would not be logged to the
debug.log or written to the stderr (as is the case for bitcoind).
```
Backport of core [[https://github.com/bitcoin/bitcoin/pull/14162/files | PR14162]]
Depends on D5051.