Fix a copy-and-paste error when setting the unexpected exception handler
(actually set the terminate handler by mistake).