Report errors on startup in a more rubust way