Error handling improved: if a Lua script is wrong, the programm gets terminated.