Fix Bug#1099062 "Incorrect exception handling in lua startup script"