catch everything, so that startup should never crash.