core: fix start up error reporting issues.