Fixed an unhandled exception in an exception handler.