Don’t crash if trigger callbacks throw exceptions.
Write Lua debug information to lua.log.
End the mission when a script error occurs.
Merge pull request #6776 from pchote/better-lua-errors

Closes #5846