Use long-jmp instead C++ exceptions.