Ensure startup error is logged (and rethrown)

Fixes gh-948