Ensure that errors during startup are written to the logs and the console.