main: Always raise unchaught exceptions and only log once logging is setup