Setup exception handler after configuring logging.

We currently set up the exc handler before we configure logging.
This means that an error in the setup will try to raise an exception
which will then fail to log properly because we haven't set up
handlers properly yet. Therefore, simply rely on the default
exception handler during setup and setup our exception handler
immediately after logging is configured.

Fixes bug 1130464

Change-Id: I4b80c646a7d7d5048c8fbadc67dbb9f607d2af69