Flush the active log destination synchronously during shutdown or fatal exit.
Flush errors are written directly to stderr because the structured logger may itself be the failing destination.
Flush the active log destination synchronously during shutdown or fatal exit.