Move def'ing logging excepthook before inj init.

We just need logging setup to be useful, and lots
of things in init_dep_injection() can fail, so set
the excepthook_logging up before it.