Lua essentially can't operate with C++ on Windows x86. As a consequence, on that platform just exit from the program if an exception happens inside Lua.