Error checking during startup