Add exception handler service and wrap the core in a singleton.