Unregister exception handler if we made it through. Closes #680