Improve error trace at startup