[BUGFIX] Register the exception handler early in bootstrap