Exception handler move to a service

Let people more easily override the exception handler.